package com.ricky.web;

import com.ricky.base.BaseApp;
import com.ricky.base.annotation.EnableErrorHandle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.net.UnknownHostException;

@Slf4j
@EnableErrorHandle
@SpringBootApplication
public class App extends BaseApp {

    public static void main(String[] args) throws UnknownHostException {
        launch(App.class, args);
        log.info("\n----------------------------------------------------------\n\t" +
                        "Doc: \t\thttp://{}:{}/doc.html\n" +
                        "----------------------------------------------------------",
                host,
                port);
    }

}
